<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>回复信件</title>
    <link type="text/css" href="css/base.css" rel="stylesheet"/>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/menu.js"></script>

    <script type="text/javascript">
        function isNull() {
            var replyMessage = $("#replyMessage").val();
            if (replyMessage == "") {
                alert("请填写回复内容！");
            }
        }
    </script>

</head>

<body>
<%@ include file="/page/share/menu.jsp" %>

<div id="content">
    <form method="post" action="Mailbox!replyMail.action" onsubmit="isNull()">
        <table>
            <tr>
                <td align="right">
                    发件学生:
                </td>
                <td>
                    <span>${mailbox.student.studentName}</span>
                </td>
            </tr>
            <tr>
                <td align="right">
                    主 题：
                </td>
                <td>
                    <span>${mailbox.title}</span>
                </td>
            </tr>
            <tr>
                <td align="right">
                    回复内容:
                </td>
                <td>
                    <textarea rows="2" cols="10" name="replyMessage" id="replyMessage"></textarea>
                    <%--<input type="text" name="replyMessage" value="" style="width: 500px;height: 25px;"/><br/>--%>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="hidden" name="id" value="${mailbox.id}"/>
                    <input type="submit" value="回复" onMouseOver="this.style.background='#2569c1'"
                           onmouseout="this.style.background='#114a93'"
                           style="width:120px;height:25px;cursor:pointer;border: none;background: #2569c1;color: white;font-size: 16px;"/>
                </td>
            </tr>
            </tr>
        </table>
    </form>
</div>


<div id="footer">
    <p style="text-align: center;color: #757575;padding: 20px 0px 0px 0px; font:12px;">Copyright © 2010-2013 蓝天白云团队
        版权所有</p>
</div>
</body>
</html>